package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Newsrecord implements Serializable {
    private Integer nrno;

    private String ntitle;

    private String nrtime;

    private String nid;

    private static final long serialVersionUID = 1L;

    public Integer getNrno() {
        return nrno;
    }

    public void setNrno(Integer nrno) {
        this.nrno = nrno;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    public String getNrtime() {
        return nrtime;
    }

    public void setNrtime(String nrtime) {
        this.nrtime = nrtime;
    }

    public String getNid() {
        return nid;
    }

    public void setNid(String nid) {
        this.nid = nid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Newsrecord other = (Newsrecord) that;
        return (this.getNrno() == null ? other.getNrno() == null : this.getNrno().equals(other.getNrno()))
            && (this.getNtitle() == null ? other.getNtitle() == null : this.getNtitle().equals(other.getNtitle()))
            && (this.getNrtime() == null ? other.getNrtime() == null : this.getNrtime().equals(other.getNrtime()))
            && (this.getNid() == null ? other.getNid() == null : this.getNid().equals(other.getNid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNrno() == null) ? 0 : getNrno().hashCode());
        result = prime * result + ((getNtitle() == null) ? 0 : getNtitle().hashCode());
        result = prime * result + ((getNrtime() == null) ? 0 : getNrtime().hashCode());
        result = prime * result + ((getNid() == null) ? 0 : getNid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", nrno=").append(nrno);
        sb.append(", ntitle=").append(ntitle);
        sb.append(", nrtime=").append(nrtime);
        sb.append(", nid=").append(nid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}